import { zhCn as runTimeZhCN } from "@ibiz-template/runtime";
import { zhCn as modelHelperZhCN } from "@ibiz-template/model-helper";
import { zhCn as coreZhCN } from "@ibiz-template/core";

export default {
  common: {
    undefined: "未定义",
    onFoundCorrespondingPart: "未定义未找到对应部件的适配器",
    noFoundViewModel: "未找到视图模型",
    noSupportLoadingDynamic: "{codeName}无实体,暂不支持加载动态模型",
  },
  components: {
    panelComponent: {
      noConfiguardDataObject: "没有配置数据对象名称",
      noSupportedDataSourceType: "数据源类型{dataSourceType}暂未支持",
      noConfiguredEntityLogic: "没有配置实体逻辑",
      noConfiguredEntity: "没有配置实体",
      noReturnValue: "实体逻辑{appDELogicId}没有返回值",
      noAttribute: "全局变量里没有{dataName}属性",
      noConfiguredScript: "没有配置脚本代码",
      noConfiguerdEntityBehanior: "没有配置实体行为",
      sessionView: "绑定视图的会话不存在{dataName}",
      viewStateAttribute: "视图state里没有{dataName}属性",
      noImplementMethod: "未执行的方法",
      noProvidedSlot: "未提供{id}插槽",
      cannotEmpty: "{caption} 不能为空",
      unadaptedLayout: "未适配的布局占位{layoutPos}",
      placeholderIdentifier: "视图{viewCodeName}的面板成员{id}的占位标识是：",
    },
  },
  locale: {
    prompt: "提示",
    switchLanguagePrompt: "切换语言需要刷新页面，确认切换?",
  },
  use: {
    controller: {
      parameterChanges: "{id}的上下文或视图参数变更：",
      stateChange: "[{name}] state 变更",
    },
    focusBlur: {
      noFocus: "没有聚焦，不触发失焦",
    },
  },
  utils: {
    unauthorizedHandler: {
      noFoundEnvParams: '找不到环境参数casLoginUrl',
    },
    route: {
      noViewIdentity: "第{depth}级路由不存在视图标识"
    }
  },
  viewEngine: {
    closeRemind: "关闭提醒",
    confirmClosePrompt: "表单数据已经修改，确定要关闭？",
    noExistVersionErr: "当前工作流版本不存在",
    noFoundFormModel: "找不到表单{name}的模型",
    missingToolbarModel: "缺少工具栏部件模型",
    notReceivedPrompt: "没有接收到appDataEntityId",
  },

  // runTime
  ...runTimeZhCN,
  // core
  ...coreZhCN,
  // modelHelper
  ...modelHelperZhCN,
};
